import {request} from "../request";

export function getDeptLists(){
    return request({
        url:'/sys/dept/list',
        method:'get'
    })
}

export function getDeptById(id){
    return request({
        url:`/sys/dept/${id}`,
        method:'get'
    })
}

export function postDept(data){
    return request({
        url:`/sys/dept`,
        method:'post',
		data:data
    })
}

export function putDept(data){
    return request({
        url:`/sys/dept`,
        method:'put',
		data:data
    })
}